import request from '@/utils/request'


export function scenicSpotAdd(data) {
  return request({
    url: `/attractions/instructions`,
    method: 'post',
    data
    // params
  })
}

// 修改优惠券
export function scenicSpotEdit(data) {
  return request({
    url: `/attractions/instructions`,
    method: 'put',
    data
    // params
  })
}

// // 优惠券列表
export function scenicSpotList(params) {
  return request({
    url: `/attractions/instructions/list`,
    method: 'get',
    params
  })
}

// 删除优惠券
export function scenicSpotDelete(couponIds) {
  return request({
    url: `/attractions/instructions/${couponIds}`,
    method: 'delete',
  })
}

// 查询优惠券详情
export function scenicSpotDetails(couponId) {
  return request({
    url: `/attractions/instructions/${couponId}`,
    method: 'get',
  })
}
